package com.hundsun.aitest.model.plat;

import cn.hutool.json.JSONUtil;
import lombok.Data;

import java.util.List;

@Data
public class ApiParams {
    private String name;
    private String type;
    private String required;
    private String defaultValue;
    private String description;
    private List<ParamsDict> example; // 参数字典或基础数据列表
    private String path;

    @Override
    public String toString() {

        return "{" +
                "name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", required='" + required + '\'' +
                ", description='" + description + '\'' +
                ", defaultValue='" + defaultValue + '\'' +
                ", example='" + JSONUtil.parseArray(example) + '\'' +
                ", path='" + path + '\'' +
                '}';
    }
}
